

/**
 *
 *
 * API:
 * ---------------
 * getBPMObjectType()
 * fromXML(xmlNode)
 * isDelete()
 * getName()
 */
(function(global){

    var logger = WorkflowUtil.newLogger("WorkflowApp/BPMPolicy");

    var BPMPolicy = function(){

        BPMPolicy.__super__.constructor.apply(this, arguments);

        this.addAttr("id", "", "i");
        this.addAttr("name", "", "n");
        this.addAttr("isDelete", "", "m");
    }
    //继承
    WorkflowUtil.extend(BPMPolicy, global.BPMObject);


    BPMPolicy.prototype.getBPMObjectType = function(){
        return WorkflowConstant.bpmObjType.BPMPolicy;
    }

    BPMPolicy.prototype.isDelete = function(){
      return this.getAttr("isDelete") == "true";
    }

    BPMPolicy.prototype.getName = function(){
      return this.getAttr("name");
    }

    global.BPMPolicy = BPMPolicy;

})(WorkflowApp);
